const express = require('express')
const app = express()

const homeRoutes = require('./routes/homeRouter')
const adminRoutes = require('./routes/adminRouter')

app.use('/',homeRoutes).use('/admin',adminRoutes)

app.listen(3000, () => {
  console.log('服务器启动成功')
})